package ch04;

class FlowEx12 {
	public static void main(String[] args) {
		int sum = 0;
		int i;
		for (i = 1; i <= 10; i++) sum += i; 		
		System.out.println("sum from 1 to "+ (i - 1) + ": " + sum);
	}
}
/*
sum from 1 to 10: 55
*/